-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Internal nits and house keeping #1832
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR reorganizes the observability/tracing infrastructure by moving classes from com.mongodb.internal.tracing to com.mongodb.internal.observability.micrometer and refactoring related code to improve maintainability and organization.
Key changes:
- Moved tracing-related classes from
internal.tracingtointernal.observability.micrometerpackage - Extracted
MongoNamespace.COMMAND_COLLECTION_NAMEandADMIN_DB_COMMAND_NAMESPACEconstants to a newMongoNamespaceHelperclass - Refactored
MongoDriverInformationfrom a concrete class to an abstract class withConcreteMongoDriverInformationas the implementation
Reviewed Changes
Copilot reviewed 47 out of 47 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| driver-core/src/main/com/mongodb/internal/observability/micrometer/* | Package relocation of tracing classes from internal.tracing |
| driver-core/src/main/com/mongodb/observability/micrometer/MicrometerObservabilitySettings.java | Moved from observability package and updated import references |
| driver-core/src/main/com/mongodb/internal/MongoNamespaceHelper.java | New helper class for namespace constants previously in MongoNamespace |
| driver-core/src/main/com/mongodb/MongoNamespace.java | Deprecated COMMAND_COLLECTION_NAME constant and removed internal constants |
| driver-core/src/main/com/mongodb/MongoDriverInformation.java | Refactored to abstract class pattern |
| driver-core/src/main/com/mongodb/internal/connection/ConcreteMongoDriverInformation.java | New concrete implementation extracted from MongoDriverInformation |
| Various test and implementation files | Updated imports to reference new package structure |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
driver-core/src/main/com/mongodb/observability/micrometer/MicrometerObservabilitySettings.java
Outdated
Show resolved
Hide resolved
driver-core/src/main/com/mongodb/observability/micrometer/MicrometerObservabilitySettings.java
Outdated
Show resolved
Hide resolved
…ometerObservabilitySettings.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
…ometerObservabilitySettings.java Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
nhachicha
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM waiting for CI
No description provided.